_playerLoadout = getUnitLoadout player;

profileNamespace setVariable ["playerLoadout",_playerLoadout];
saveProfileNamespace;